/**
 * 
 */
package zaphod.toy.ogametool.ui;

import java.util.List;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

import zaphod.toy.ogametool.core.model.Colony;

final class StructuredContentProviderImplementation implements
    IStructuredContentProvider
{
    @SuppressWarnings( "unchecked" )
    public Object[] getElements( Object arg0 )
    {
        if ( arg0 instanceof List )
        {
            List< Colony > list = (List< Colony >) arg0;
            return list.toArray();
        }
        return null;
    }

    public void dispose()
    {
        // TODO Auto-generated method stub

    }

    public void inputChanged( Viewer arg0, Object arg1, Object arg2 )
    {

    }
}